package com.qzsoft.zhjd.asphalt.modules.asphaltreport.controller;

import java.util.Map;

import com.qzsoft.zhjd.asphalt.modules.asphaltreport.dto.AsphaltReportMatchDto;
import com.qzsoft.zhjd.asphalt.modules.asphaltreport.service.AsphaltReportMatchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.qzsoft.jeemis.common.utils.Result;
import com.qzsoft.zhjd.common.utils.ResultUtils;

/**
 * @ClassName AsphaltReportMatchController
 * @Description 生产配比数据报表
 * @author linhuawei
 * @since 2022-02-08
 */
@RestController
@RequestMapping("/api/asphaltReportMatch")
public class AsphaltReportMatchController {

    @Autowired
    private AsphaltReportMatchService asphaltReportMatchService;

    /**
     * @Title info
     * @Description 获取生产配比数据报表
     * @param params 查询条件
     * @return
     */
    @GetMapping("/info")
    public Result<AsphaltReportMatchDto> info(@RequestParam Map<String, Object> params) {
        AsphaltReportMatchDto data = asphaltReportMatchService.info(params);
        return ResultUtils.ok(data);
    }

}
